.PHONY:all
all: mypthread detach
mypthread:mythread.cc
	g++ -o $@ $^ -std=c++11 -lpthread
detach:mydetach.cc
	g++ -o $@ $^ -std=c++11 -lpthread
.PHONY:clean
clean:
	rm -f mypthread detach